﻿// owner 蒋家伟

#pragma once

// qt
#include <QVariant>
#include <QObject>

// jsdk
#include "IHardwareEvent.h"

namespace jsdk
{
    class IHardwareEventHandler;
    class SerialPortHardwareWorker : public QObject
    {
        Q_OBJECT
    public:
        ~SerialPortHardwareWorker() {};
        static OwnerPtr<SerialPortHardwareWorker> create(IHardwareEventHandler* pHardwareEventHandler);

    public slots:
        void onAddTask(QVariant vTaskId);

    private:
        SerialPortHardwareWorker() {}
        OwnerPtr<IHardwareEvent> m_opHardwareEvent;
    };
}